package com.lagou.sqlSession;

import java.sql.SQLException;
import java.util.List;

/**
 * @author ADMIN
 * @date 2021/3/21 18:47
 */
public interface SqlSession {
    /**
     * 查询所有
     */
    public <E> List<E> selectList(String statementId,Object... params) throws SQLException, ClassNotFoundException, Exception;

    /**
    查询单个
     */
    public <T>  T selectOne(String statementId, Object... params) throws SQLException, ClassNotFoundException, Exception;

    /**
     * 为dao层接口生成代理类
     */
    public <T> T getMapper(Class<?> mapperClass);
}
